<?php
	
namespace App\Http\Controllers;

use DB;
use Laravel\Lumen\Routing\Controller;
use Illuminate\Http\Request;

class SellerController extends BaseController{

    public function index($code){
        $data = $request->all();

        $couponResult = DB::table('seller')->join('admin','admin.id','=','seller.admin_id')
                                            ->select('seller.*');
                                            ->where('admin.code',$code)
                                            ->paginate(8)
                                            ->toJson();                
        $couponResult = json_decode($couponResult);
        return $this::jsonResponse(false,$couponResult);
    }    
}   

?>